package com.ims.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * @author yekka1
 * @description: TODO
 * @date 2022/9/7 21:15
 */
@TableName(value = "table_privilege")
public class Privilege {
    /** 角色 id */
    @TableField(value = "role_id")
    private Integer roleId;

    /** 菜单 id */
    @TableField(value = "menu_id")
    private Integer menuId;

    @TableField(value = "p_insert")
    private Integer pInsert;

    @TableField(value = "p_delete")
    private Integer pDelete;

    @TableField(value = "p_update")
    private Integer pUpdate;

    @TableField(value = "p_select")
    private Integer pSelect;

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public Integer getMenuId() {
        return menuId;
    }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }

    public Integer getpInsert() {
        return pInsert;
    }

    public void setpInsert(Integer pInsert) {
        this.pInsert = pInsert;
    }

    public Integer getpDelete() {
        return pDelete;
    }

    public void setpDelete(Integer pDelete) {
        this.pDelete = pDelete;
    }

    public Integer getpUpdate() {
        return pUpdate;
    }

    public void setpUpdate(Integer pUpdate) {
        this.pUpdate = pUpdate;
    }

    public Integer getpSelect() {
        return pSelect;
    }

    public void setpSelect(Integer pSelect) {
        this.pSelect = pSelect;
    }

    @Override
    public String toString() {
        return "Privilege{" +
                "roleId=" + roleId +
                ", menuId=" + menuId +
                ", pInsert=" + pInsert +
                ", pDelete=" + pDelete +
                ", pUpdate=" + pUpdate +
                ", pSelect=" + pSelect +
                '}';
    }
}
